<?php

namespace application\core;

use application\core;

class fool{
    public function __construct()
    {
        echo "Game Start!<br>";
    }

    public function season($num){
        switch ($num){
            case 1:
            case "春天":
                echo "春天来了";
                break;
            case 2:
            case "夏天":
                echo "夏天来了";
                break;
            case 3:
            case "秋天":
                echo "秋天来了，大丰收!!";
                break;
            case 4:
            case "冬天":
                echo "冬天来了";
                break;
            case "南方":
                echo "这里四季如春";
                break;
            default:
                echo "这是一个什么季节？？？";
                season(rand(1,4));
                break;

        }

    }

    public function __destruct()
    {
        echo "<br> I'm breaking from you do";
    }
}

